<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatePrtGroupTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('prt_auth_group', function (Blueprint $table) {
            $table->increments('id');
            $table->integer("group_pid")->default(0)->comment('父级id');
            $table->string('group_name',30)->default('')->comment("角色名称");
            $table->text("group_rule")->nullable()->comment('规则id表');
            $table->tinyInteger('status')->default(1)->comment('状态');
            $table->tinyInteger('check_status')->default(1)->comment('审核状态');
            $table->integer('created_at')->comment("创建时间")->nullable();
            $table->integer('updated_at')->comment("更新时间")->nullable();
            $table->integer('deleted_at')->default(null)->comment("删除时间")->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('prt_auth_group');
    }
}
